<template>
  <div>
     <!-- 导航栏 -->
     <div class="nav">
        <router-link to="/discover">发现音乐</router-link>
        <router-link to="/my">我的音乐</router-link>
        <router-link to="/friend">关注</router-link>
     </div>
     <!-- 路由出口 -->
     <router-view />
  </div>
</template>

<script>
  export default {

  }
</script>

<style scoped>
  .nav {
    height: 50px;
    background-color: #242424;
    display: flex;
  }

  .nav a {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #fff;
  }

  .nav a.router-link-active {
    color: #f00;
  }
</style>